package edu.java.lectures.lec12.threads.synchronization.estatic;

public class MyClassCounterWriter extends Thread {

    public MyClassCounterWriter(String name) {
	super(name);
    }

    @Override
    public void run() {
	int counter = 0;
	while (true) {
	    counter++;
	    System.out.println(getName() + " updates count: " + counter);
	    MyClass.setCounter(counter);
	}
    }
}
